from users import user_bp


from flask import request

@user_bp.route('/upload', methods=['POST'])
def upload_file():
    f = request.files['pic']

    f.save('./demo.png')
    return 'ok'